Skip to content

Add pydantic-settings support and .env file loading#8

Merged
jasmeralia merged 1 commit into
masterfrom
feature/pydantic-settings
May 14, 2026
Merged

Add pydantic-settings support and .env file loading#8
jasmeralia merged 1 commit into
masterfrom
feature/pydantic-settings

Conversation

@jasmeralia

Copy link
Copy Markdown
Owner

Summary

  • Add pydantic-settings BaseSettings class with .env//app/.env file loading support
  • Create .env.example documenting all supported environment variables
  • Update README.md with instructions for bind-mounting a .env file into the container
  • Add pydantic-settings>=2.0 (and python-dotenv where needed) to requirements.txt

Test plan

  • Build Docker image and verify it starts without errors
  • Verify environment variables can be passed via bind-mounted /app/.env
  • Verify existing env var override behaviour still works

🤖 Generated with Claude Code

- Add pydantic-settings>=2.0 to requirements.txt
- Add Settings class (BaseSettings) for typed, validated config
- Load .env on startup so bind-mounted credentials work in Docker
- Add .env.example documenting all environment variables
- Update README with .env bind-mount instructions

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@jasmeralia jasmeralia merged commit 18ecc3d into master May 14, 2026
1 check passed
@jasmeralia jasmeralia deleted the feature/pydantic-settings branch May 14, 2026 08:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant